home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
22
/
2
/
DISK2220.ZIP
/
SCREDIT4.EXE
/
SMALLEST.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1990-10-24
|
1KB
|
41 lines
{*********************************************************************
Smallest.Pas demonstrates the minimum amount of Pascal statements
required to open a screen file, display a screen, accept data entry
into the screen buffer and pass it back to the calling program.
Step 1
To use this file do the following..
1 - Change "ScrDemo.003" to the name of your screen buffer.
2 - Change "ScrDemo.Scr" to the name of your screen file.
3 - Change "Dupe_Fields" to the name of your screen
Step 2
Change COMPILE/(P)RIMARY to Smallest.Pas
Change OPTIONS/DIRECTORY/(U)NIT to include the directory where
you have stored "ScrEdit.Tpu".
Step 3
Compile and run the program.
After you performed the steps listed above this program will
compile and run if the screen file and screen buffers are in the
current directory.
********************************************************************}
Uses Crt,ScrEdit;
{$I ScrDemo.003}
Begin
S_OpenScreenFile('ScrDemo.Scr');
Initialize_Dupe_Fields_Buf;
S_LoadScreen('Dupe_Fields');
S_ClearScreen(1);
Repeat
S_ReadScreen;
If S_Enter Then
S_UserMsg := 'ENTER KEY PRESSED';
Until S_Esc;
S_CloseScreenFile;
gotoxy(1,25);
End.